import { typeModule } from '@renderer/utils/bundle'
import * as PIXI from 'pixi.js'
export default async (data: Wx.Card.Data): Promise<PIXI.Sprite> => {
  const sprite = await typeModule(data)
  sprite.anchor.set(0.5)
  return sprite
}
